package com.jzg.common.model.sys;


import com.jzg.common.model.sys.base.*;

@SuppressWarnings("serial")
public class SysUser extends BaseSysUser<SysUser> {
	public static final SysUser dao = new SysUser().dao();
	public static final String TABLE_NAME="sys_user";
	
	private String isAuth;
	public String getIsAuth() {
		if (super.get("isAuth") == null) {
			super.put("isAuth", this.isAuth);
		}
		return super.get("isAuth");
	}
	public void setIsAuth(String isAuth) {
		super.put("isAuth", isAuth);
	}
	
	public SysUser findUserByUsername(String username) {
		return dao.findFirst("SELECT * FROM "+TABLE_NAME+" WHERE USERNAME=? ",username);
	}
	
}
